#!/bin/sh

# Copy from the repository to the working directroy
echo "Copying repository to your working copy"
cd / home
cd "/Applications/MAMP/htdocs/markpalmer/"
sudo chmod 775 sites/
cd / home
sudo cp -rf "/Volumes/MMWebsite/multimedia-drupal-website/sites/" "/Applications/MAMP/htdocs/markpalmer/sites/"

# Remove the hidden subversion folders
echo "Stripping hidden subversion folders from working copy"
cd "/Applications/MAMP/htdocs/markpalmer/sites"
sudo rm -rf $(find . -name .svn)